/* Form
 **************************/
@import "../themes/default";
form {
	input:-webkit-autofill,
	input:focus:-webkit-autofill {
		-webkit-box-shadow: 0 0 0px 1000px $white inset;
	}
	.checky-input-error {
		color: $red !important;
		border: 1px solid $red !important;
	}
	.help-block {
		margin: 0;
		font-weight: bold;
		color: inherit;
		em.checky-default-failure {
			position: relative;
			display: inline-block;
			padding: .25em .8em;
			margin: .5em .25em 0;
			font-style: normal;
			color: $white;
			background-color: $red;
			border: 1px solid $red;
			border-radius: .325em;
			&:before {
				position: absolute;
				top: -.3em;
				// left: 50%;
				z-index: 2;
				width: .6em;
				height: .6em;
				content: "";
				margin-left: -.3em;
				background-color: $red;
				background-image: none;
				@include rotate(45deg);
				transition: background .1s linear;
			}
		}
	}
	fieldset {
		legend {
	 		padding: 10px 0;
	 		color: inherit;
	 	}
		& + fieldset {
			padding-top: 15px;
			border-top: 1px solid $form-fieldset-border;
		}
		.button-group {
			text-align: center;
			.btn + .btn {
				margin-left: 15px;
			}
		}
	}
	.form-group {
		label {
			em {
				color: $red;
			}
		}
	}
	.form-divider {
		height: 1px;
		margin: 5px 0 20px;
		border-top: 1px dashed $form-divider-border;
	}
}
.form-group {
	.select2-container--default .select2-selection--single {
		width: 100%;
		background-image: none;
		border: 1px solid #ccc;
		border-radius: 4px;
		box-shadow: inset 0 1px 1px $form-select2-shadow;
	}
	.select2-container .select2-selection--single {
		height: 34px;
	}
	.select2-container .select2-selection--single .select2-selection__rendered {
		padding-top: 2px;
		padding-left: 13px;
	}
	.select2-container {
		width: 100% !important;
	}
	.select2-container--default .select2-selection--single .select2-selection__arrow {
		height: 34px;
	}
	.select2-container--default .select2-selection--multiple {
		min-height: 34px;
		background-image: none;
		border: 1px solid #ccc;
		border-radius: 4px;
		box-shadow: inset 0 1px 1px $form-select2-shadow;
	}
}